/**
 * 下午1:37:43
 */
package com.hsnn.medstgmini.pro.project.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hsnn.medstgmini.base.std.model.StdCompprofile;
import com.hsnn.medstgmini.dao.HibernateSqlUtil;
import com.hsnn.medstgmini.pro.project.dao.BidProjcompprofileDao;
import com.hsnn.medstgmini.pro.project.service.BidProjcompprofileManager;
import com.hsnn.medstgmini.util.Pagination;

/**
 * @author hsnn
 *
 */
@Service
public class BidProjcompprofileManagerImpl implements BidProjcompprofileManager {

	@Autowired
	private BidProjcompprofileDao bidProjcompprofileDao;
	
	@Autowired
	private HibernateSqlUtil dao;
	
	@Override
	public Pagination getBidProjectList(Pagination page) {
		return bidProjcompprofileDao.getBidProjectList(page);
	}

	@Override
	public Pagination getBidProjcompprofileList(Pagination page) {
		return bidProjcompprofileDao.getBidProjcompprofileList(page);
	}

	@Override
	public boolean save(Object obj) {
		if(dao.add(obj)){
			return true ;
		}
		return false;
	}

	@Override
	public boolean update(Object obj) {
		if(dao.update(obj)){
			return true ;
		}
		return false;
	}

	@Override
	public boolean commitBidProjcompprofile(Pagination page) {
		// TODO Auto-generated method stub
		return false;
	}

	
	@Override
	public List<StdCompprofile> getBidProjcompprofileListByName(String name) {
		return bidProjcompprofileDao.getBidProjcompprofileListByName(name);
	}

	/**
	 * 获取企业资质审核未通过的列表数据
	 */
	@Override
	public Pagination getBidProjcompprofileResultList(Pagination page) {
		return bidProjcompprofileDao.getBidProjcompprofileResultList(page);
	}
	
	@Override
	public Pagination getBidProjcompprofileApplyResultList(Pagination page) {
		return bidProjcompprofileDao.getBidProjcompprofileApplyResultList(page);
	}


	@Override
	public Object getObjectById(Class<?> obj,String projCompprofileId) {
		return   dao.getUniquerResult(obj, projCompprofileId);
	}

}
